<script type="text/javascript">

	function validateForm(){
		var form = document.forms[0]; 
		if (form.name.value == "")
			alert('Debe ingresar un nombre de template');	
		else if (form.classType.value == "")
			alert('Debe ingresar una clase');	
		else if (form.idOwner.value == "")
			alert('Debe seleccionar un administrador');	
		else
			form.submit();
	} 

	function cancelar() {
		window.location.href='<%=request.getContextPath() %>/simpleTemplateList.do';
	} 
</script>

<tr align="left" bgcolor="#F3F9FC">
	<td>Nombre:</td>
	<td><html:text property="name" /></td>
</tr>
<tr>
	<td>Clase CSS:</td>
	<td><html:text property="classType" /></td>
</tr>

<tr>	
	<td>Administrador:</td>
	<td>
		<html:select property="idOwner">
					<option value="">Seleccione...</option>
					<html:optionsCollection name="simpleTemplateEditForm" property="users" value="id" label="userName"/> 
		</html:select>
	</td>
</tr>

<tr>	
	<td>Compone el template:</td>
	<td>
		<html:select property="idCompositeTemplate">
					<option value="">Ninguno</option>
					<html:optionsCollection name="simpleTemplateEditForm" property="compositeTemplates" value="id" label="name"/> 
		</html:select>

	</td>
</tr>




